<?php
	include "includes".DIRECTORY_SEPARATOR."start_session.php";
	
	if ( !defined('USERNAME') || !defined('GROUP') || GROUP != "admin" )
	{
		header("Location: manage_login.php");
		exit;
	}
	 
	 if($_SERVER["REQUEST_METHOD"] == 'GET')
		if(isset($_GET[name]))
	   		mysqli_query($dbc,"DELETE FROM groups WHERE  group_name = '$_GET[name]' ");
	   
	header("Location: ./admin_manage_groups.php");	   
?>